﻿package WebRoot.demo4.entity;

import org.hoyi.DB.comment.DbAttrANNO;
import org.hoyi.DB.comment.EntityAttrANNO;
import org.hoyi.DB.comment.datatype;
import org.hoyi.DB.ctrl.HOYI;
import org.hoyi.DB.ctrl.HOYICMD;
import org.hoyi.DB.ents.Entity;
import org.hoyi.DB.model.AttField;


/**
*  实体类 order 属性说明自动提取数据库字段的描述信息.
*/
@EntityAttrANNO(tablename="order", comment="order")
public class orders extends Entity{
	//#region 静态字段
	/// <summary>
	/// 编号
	/// </summary>
	public static AttField id = new AttField("id");		
	/// <summary>
	/// uuid
	/// </summary>
	public static AttField uxid = new AttField("uxid");		
	/// <summary>
	/// 订单号
	/// </summary>
	public static AttField ordernum = new AttField("ordernum");		
	/// <summary>
	/// 订单时间
	/// </summary>
	public static AttField createtime = new AttField("createtime");		
	/// <summary>
	/// 订单备注
	/// </summary>
	public static AttField note = new AttField("note");		
	   
	//#endregion 静态字段
	
	
	//#region 字段
	/// <summary>
	/// 编号
	/// </summary>	
	@DbAttrANNO(type=datatype.Int,  Length = 11, Comment = "编号", FieldName = "id",isPK= true,Identity=true)
	public String Id ;		

	/// <summary>
	/// uuid
	/// </summary>	
	@DbAttrANNO(type=datatype.Varchar,  Length = 30, Comment = "uuid", FieldName = "uxid")
	public String Uxid ;		

	/// <summary>
	/// 订单号
	/// </summary>	
	@DbAttrANNO(type=datatype.Varchar,  Length = 11, Comment = "订单号", FieldName = "ordernum")
	public String Ordernum ;		

	/// <summary>
	/// 订单时间
	/// </summary>	
	@DbAttrANNO(type=datatype.Varchar,  Length = 30, Comment = "订单时间", FieldName = "createtime")
	public String Createtime ;		

	/// <summary>
	/// 订单备注
	/// </summary>	
	@DbAttrANNO(type=datatype.Varchar,  Length = 200, Comment = "订单备注", FieldName = "note")
	public String Note ;		

	 
	
	
	/// <summary>
	/// 编号
	/// </summary>	
	
	public String getId(){
		if(this.Id == null)
			return "";
		return this.Id;
	}
	
	public void setId(String _id)
	{
		this.Id = _id;
		
	}
	/// <summary>
	/// uuid
	/// </summary>	
	
	public String getUxid(){
		if(this.Uxid == null)
			return "";
		return this.Uxid;
	}
	
	public void setUxid(String _uxid)
	{
		this.Uxid = _uxid;
		
	}
	/// <summary>
	/// 订单号
	/// </summary>	
	
	public String getOrdernum(){
		if(this.Ordernum == null)
			return "";
		return this.Ordernum;
	}
	
	public void setOrdernum(String _ordernum)
	{
		this.Ordernum = _ordernum;
		
	}
	/// <summary>
	/// 订单时间
	/// </summary>	
	
	public String getCreatetime(){
		if(this.Createtime == null)
			return "";
		return this.Createtime;
	}
	
	public void setCreatetime(String _createtime)
	{
		this.Createtime = _createtime;
		
	}
	/// <summary>
	/// 订单备注
	/// </summary>	
	
	public String getNote(){
		if(this.Note == null)
			return "";
		return this.Note;
	}
	
	public void setNote(String _note)
	{
		this.Note = _note;
		
	}
	 
	//#endregion 字段
	
				
	public static orders NEW(){
		return new orders();
	} 
	
	public orders() {
	}
	
	public orders( String _uxid ,  String _ordernum ,  String _createtime ,  String _note ){
		 this.Uxid =  _uxid;
		 this.Ordernum =  _ordernum;
		 this.Createtime =  _createtime;
		 this.Note =  _note;
		
	}	
	
	public orders( String _id ,  String _uxid ,  String _ordernum ,  String _createtime ,  String _note ){
		 this.Id =  _id;
		 this.Uxid =  _uxid;
		 this.Ordernum =  _ordernum;
		 this.Createtime =  _createtime;
		 this.Note =  _note;
		
	}	
	
	//#region 语法所迫, 初始化命令.
	
	public static HOYICMD E() {
			return HOYI.E(orders.class);
	}
	
	@Override
	public String getFirstfield() {
		// TODO Auto-generated method stub
		return "id";
	}
	
	@Override
	public String getSecondfield() {
		// TODO Auto-generated method stub
		return "uxid";
	}

	//#endregion 语法所迫, 初始化命令.
}
